package com.cash.loan.modular.cash.dao;

import com.cash.loan.modular.cash.model.LoanCate;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cash.loan.modular.cash.model.LoanProduct;
import com.cash.loan.modular.cash.transfer.vo.ProductListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产品栏目表 Mapper 接口
 * </p>
 *
 * @author yangbo123
 * @since 2018-09-29
 */
public interface LoanCateMapper extends BaseMapper<LoanCate> {

    /**
     * 查询5个展示数据
     * @return
     */
    List<Map<String,Object>> selectCateLimit();

    /**
     * 根据类别id查询对应的产品
     * @param cateId
     * @return
     */
    List<LoanProduct> selectProductListByCateId(@Param("cateId") Integer cateId);

    /**
     * 得到所有的类别列表
     * @return
     */
    List<Map<String,Object>> getCateList();
}
